//
//  Animal+CoreDataProperties.m
//  WidgetTest
//
//  Created by 李明明 on 15/10/28.
//  Copyright © 2015年 李明明. All rights reserved.
//
//  Choose "Create NSManagedObject Subclass…" from the Core Data editor menu
//  to delete and recreate this implementation file for your updated model.
//

#import "Animal+CoreDataProperties.h"
#import "DataBaseOB.h"
@implementation Animal (CoreDataProperties)

@dynamic kind;
@dynamic color;
@dynamic age;



+ (instancetype)shareAnimal
{
    static Animal *animal;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        NSManagedObjectContext *context = [DataBaseOB shareInstance].managedObjectContext;
        NSEntityDescription *entity = [NSEntityDescription entityForName:@"People" inManagedObjectContext:context];
        animal = [[Animal alloc] initWithEntity:entity insertIntoManagedObjectContext:nil];
        
    });
    return animal;
}


@end
